package com.gljx.web.service;

import com.gljx.web.Entity.SimulationQuarge;

import java.util.List;
import java.util.Map;

public interface SimulationQuargeService {
	Map<String, Object> selectPageCount(String psql);

    Map<String, Object> selectPage(int pindex, String psql, int psize);
	/**
	 * 根据fid查询模拟考合格登记
	 * @param fcompanyid
	 * @return
	 */
	SimulationQuarge selectSimulationQuargeByFid(String fid);
	/**
	 * 查找最大编码
	 * @return
	 */
	String selectFnumber(String companyId);
	/**
	 * 增加模拟考试合格登记主表信息
	 * @param simulationQuarge
	 * @return
	 */
	int addSimulationQuarge(SimulationQuarge simulationQuarge);
	/**
	 * 根据fid删除
	 * @param fid
	 * @return
	 */
	int deleteByPrimaryKey(String fid);
	/**
	 * 根据fid查找模拟考合格登记
	 * @param fid
	 * @return
	 */
	SimulationQuarge selectByPrimaryKey(String fid);
	/**
	 * 修改模拟考试合格登记信息
	 * @param record
	 * @return
	 */
	int updateSimulationQuarge(SimulationQuarge record);

	/**
	 *查找模拟考合格登记 用于导出excel
	 * @param fnumber
	 * @param fdescription
	 * @param beginTime
	 * @param endTime
	 * @return
	 */
	List<SimulationQuarge> selectSimulationQuarge(String companyId,String fnumber,String fdescription,String beginTime,String endTime);
}
